package com.cfets.annualAssessment.securityConfig;

import org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler;

/**
 * Created by ShenYiChou on 2017/10/23.
 */
public class MyAuthenticationSuccessHandler extends SimpleUrlAuthenticationSuccessHandler{
    public MyAuthenticationSuccessHandler(String defaultTargetUrl){
        this.setDefaultTargetUrl(defaultTargetUrl);
    }
    public MyAuthenticationSuccessHandler(){
        this.setDefaultTargetUrl("/index");
    }

}
